from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from app import create_app

# 创建应用
app = create_app()

# 初始化Manager
manager = Manager(app)

# 添加命令
manager.add_command('runserver', manager.Command)

if __name__ == '__main__':
    manager.run()    